<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri ="http://shiro.apache.org/tags" prefix="shiro"%>
<%
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath() + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>

</head>


<body>
<div id="app">
  <p>{{ message }}</p>
</div>

<script>
new Vue({
  el: '#app',
  data: {
    message: '中文666'
  }
})
</script>

<shiro:authenticated>
		<a href="/siyuan/home.shtml">已经登录，点击此处返回HOME</a>
	</shiro:authenticated>

<shiro:notAuthenticated>
		未登录
	</shiro:notAuthenticated>



	<h1>登录</h1>${msg}
	<form action="<%=basePath%>login.shtml" method="post" name="loginForm">
		<p>
			用户ID： <input type="text" name="username">
		</p>


		<p>
			密&nbsp;码： <input type="password" name="password">
		</p>


		验证码：<input type="text" class="form-control" name="verifycode" />
		<p>
			<img src="<%=basePath%>VerifyCode.shtml">
		</p>
<p><%=basePath%></p>
		<p>
			<input type="submit" value="submit">
		</p>
	</form>
</body>
</html>